var limsPurpose = Gikam.getPageObject({

    getEditListColumns: function () {
        return [{
            checkbox: true
        }, {
            field: 'purposecode',
            title: 'T_LIMS_PURPOSE.PURPOSECODE'
        }, {
            field: 'purposename',
            title: 'T_LIMS_PURPOSE.PURPOSENAME'
        }, {
            field: 'purposetype',
            title: 'T_LIMS_PURPOSE.PURPOSETYPE'
        }, {
            field: 'defaultresult',
            title: 'T_LIMS_PURPOSE.DEFAULTRESULT'
        }, {
            field: 'resulttype',
            title: 'T_LIMS_PURPOSE.RESULTTYPE'
        }, {
            field: 'unit',
            title: 'T_LIMS_PURPOSE.UNIT'
        }, {
            field: 'possibleresult',
            title: 'T_LIMS_PURPOSE.POSSIBLERESULT'
        }, {
            field: 'roundingrule',
            title: 'T_LIMS_PURPOSE.ROUNDINGRULE'
        }];
    },

    getChooseListColumns: function () {
        return [{
            index: true
        }, {
            field: 'purposeCode',
            title: 'T_LIMS_PURPOSE.PURPOSECODE'
        }, {
            field: 'purposeName',
            title: 'T_LIMS_PURPOSE.PURPOSENAME'
        }, {
            field: 'purposeType',
            title: 'T_LIMS_PURPOSE.PURPOSETYPE',
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'purposetype'
            },
        },]
    },

    getBaseInfoFormFields: function () {
        return [{
            field: 'purposecode',
            title: 'T_LIMS_PURPOSE.PURPOSECODE',
            validators: ['strLength[0,33]']
        }, {
            field: 'purposename',
            title: 'T_LIMS_PURPOSE.PURPOSENAME',
            validators: ['strLength[0,66]']
        }, {
            field: 'purposetype',
            title: 'T_LIMS_PURPOSE.PURPOSETYPE',
            validators: ['strLength[0,33]']
        }, {
            field: 'defaultresult',
            title: 'T_LIMS_PURPOSE.DEFAULTRESULT',
            validators: ['strLength[0,66]']
        }, {
            field: 'resulttype',
            title: 'T_LIMS_PURPOSE.RESULTTYPE',
            validators: ['strLength[0,33]']
        }, {
            field: 'unit',
            title: 'T_LIMS_PURPOSE.UNIT',
            validators: ['strLength[0,33]']
        }, {
            field: 'possibleresult',
            title: 'T_LIMS_PURPOSE.POSSIBLERESULT',
            validators: ['strLength[0,66]']
        }, {
            field: 'roundingrule',
            title: 'T_LIMS_PURPOSE.ROUNDINGRULE',
            validators: ['strLength[0,66]']
        },];
    },

    baseUrl: IFM_CONTEXT + '/secure/basemodule/coredata/purposes'
});
